<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:replace="~{common/dialogCss :: dialogCss}"></head>
<body class="dialog">
	<div class="content">
		<div class="row">
			<div class="col-sm-12">
				<div class="portlet-body form">
					<form class="form-horizontal" id="region_add_form">
						<div class="form-body">
							<input type="hidden" name="parentId" th:value="${parentId}"/>
							<div class="form-group" th:if="${parentId!=null}">
								<label class="col-sm-2 control-label">上级地区:</label>
								<div class="col-sm-8">
									<input type="text" class="form-control input-sm col-sm-8" placeholder="上级地区" th:value="${parentName}" disabled/>
									<!-- <span class="error_tip"><span class="error_icon"></span>上级地区不能为空!</span> -->
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">原始ID:</label>
								<div class="col-sm-8">
									<input type="text" name="sid" class="form-control input-sm col-sm-8" placeholder="原始ID" value="153400"></input>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">地区名称:</label>
								<div class="col-sm-8">
									<input type="text" name="name" class="form-control input-sm col-sm-8" placeholder="地区名称" value="test"></input>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">地区简称:</label>
								<div class="col-sm-8">
									<input type="text" name="shortname" class="form-control input-sm col-sm-8" placeholder="地区简称" value="test"></input>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">拼音:</label>
								<div class="col-sm-8">
									<input type="text" name="pinyin" class="form-control input-sm col-sm-8" placeholder="拼音" value="pinyin"></input>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">经度:</label>
								<div class="col-sm-8">
									<input type="text" name="lng" class="form-control input-sm" placeholder="经度" value="120.1234">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">纬度:</label>
								<div class="col-sm-8">
									<input type="text" name="lat" class="form-control input-sm" placeholder="纬度" value="30.1234">
								</div>
							</div>
							<!-- <div class="form-group">
								<label class="col-sm-2 control-label">层级:</label>
								<div class="col-sm-8">
									<input type="text" name="level" class="form-control input-sm col-sm-8" placeholder="层级" value="2"></input>
								</div>
							</div> -->
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
	<div th:replace="~{common/dialogJs :: dialogJs}">...</div>
	<script type="text/javascript">
		require(["./static/pages/scripts/system/region"], function(region){
			region.initAddDialog();
		});
	</script>
</body>
</html>